package org.ayatsuji.launchmode;

import android.content.Intent;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;

public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        Log.d(getClass().getName(), "on create===================== taskid=" + getTaskId());


        findViewById(R.id.second_singletask_button).setOnClickListener(view -> {
            Intent intent = new Intent(this, SingleTaskActivity.class);
            startActivity(intent);
        });
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.d(getClass().getName(), "on destroy=====================");

    }
}